#ifndef _Background_H_
#define _Background_H_

#include <d3dx9.h>

class Background
{
public:

	Background();
	~Background();

	bool Create( IDirect3DDevice9 *pkDevice, IDirect3DTexture9 *pkTexture );
	bool SetSize( int top, int left, int right, int bottom );
	void Update( unsigned int Count );
	void Render();
	void Release();

	bool InitLoad();
	void ChangeUV( int Num );


private:

	bool MakeBuffer();
	int InitBackVB();

	IDirect3DDevice9		*m_pkDevice;
	IDirect3DVertexBuffer9	*m_pkVB;
	IDirect3DTexture9		*m_pkTexture;

	IDirect3DVertexBuffer9	*m_pkLoad;

	UINT m_uiFVF;
	int m_iTop;
	int m_iLeft;
	int m_iRight;
	int m_iBottom;

	bool m_bLoadRender;

};

#endif // _Background_H_